package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzGongdanMapper;
import com.ruoyi.system.domain.DzGongdan;
import com.ruoyi.system.service.IDzGongdanService;
import com.ruoyi.common.core.text.Convert;

/**
 * 工单办理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
@Service
public class DzGongdanServiceImpl implements IDzGongdanService 
{
    @Autowired
    private DzGongdanMapper dzGongdanMapper;

    /**
     * 查询工单办理
     * 
     * @param dezhouGdid 工单办理主键
     * @return 工单办理
     */
    @Override
    public DzGongdan selectDzGongdanByDezhouGdid(Long dezhouGdid)
    {
        return dzGongdanMapper.selectDzGongdanByDezhouGdid(dezhouGdid);
    }

    /**
     * 查询工单办理列表
     * 
     * @param dzGongdan 工单办理
     * @return 工单办理
     */
    @Override
    public List<DzGongdan> selectDzGongdanList(DzGongdan dzGongdan)
    {
        return dzGongdanMapper.selectDzGongdanList(dzGongdan);
    }

    /**
     * 新增工单办理
     * 
     * @param dzGongdan 工单办理
     * @return 结果
     */
    @Override
    public int insertDzGongdan(DzGongdan dzGongdan)
    {
        return dzGongdanMapper.insertDzGongdan(dzGongdan);
    }

    /**
     * 修改工单办理
     * 
     * @param dzGongdan 工单办理
     * @return 结果
     */
    @Override
    public int updateDzGongdan(DzGongdan dzGongdan)
    {
        return dzGongdanMapper.updateDzGongdan(dzGongdan);
    }

    /**
     * 批量删除工单办理
     * 
     * @param dezhouGdids 需要删除的工单办理主键
     * @return 结果
     */
    @Override
    public int deleteDzGongdanByDezhouGdids(String dezhouGdids)
    {
        return dzGongdanMapper.deleteDzGongdanByDezhouGdids(Convert.toStrArray(dezhouGdids));
    }

    /**
     * 删除工单办理信息
     * 
     * @param dezhouGdid 工单办理主键
     * @return 结果
     */
    @Override
    public int deleteDzGongdanByDezhouGdid(Long dezhouGdid)
    {
        return dzGongdanMapper.deleteDzGongdanByDezhouGdid(dezhouGdid);
    }
}
